package org.kongqian.gift.exception.code;

public enum ErrorCode {
    ERROR_CODE_SUCCESS("200","操作成功!"),
    ERROR_CODE_THE_PARAMETER_IS_INCORRECT("400","参数不正确!"),
    ERROR_CODE_SYSTEM_EXCEPTION("500","系统异常,请联系管理员!"),
    ERROR_CODE_PASSWORD_EQ("500001","两次密码不一致"),
    ERROR_CODE_TENANT_NOTNULL("5000002","店铺已入驻，请登录使用！"),
    ERROR_CODE_ADMIN_NOTNULL("5000003","管理员已存在，请登录后再入驻！");

    private String code;
    private String message;

    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "ErrorCode{" +
                "code='" + code + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}
